package com.cn.studySpring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;

/**
 * @ClassName ViewController
 * @Description TODO
 * @Author Administrator
 * @Date 2018/11/12 15:07
 * @Version 1.0
 */
@Controller
@RequestMapping("/home")

@SessionAttributes("uname")
public class ViewController {

    @RequestMapping("/list")
    public String cc(ModelMap model){
        return "chart/chartroom";
    }

    @RequestMapping("/room")
    public String h(ModelMap model,String uname,String roomid){
        model.put("uname",uname);
        model.put("roomid", roomid);
        return "chart/charton";
    }
}
